//测试执行树形菜单的Stroe
var testRunStore = Ext.create(
    'LeftTreeStore',
    zuulUrl + '/' + testServiceName + '/common/testRun/project/' + testRunProject + '/' + currentUserId,
    'title',
    1);

//测试执行执行记录的store
var testRunlogStore = Ext.create('Ext.data.Store');

//测试执行执行记录对应的测试步骤的store
var testRunLogStepStore=Ext.create('Ext.data.Store');

//用于给测试执行选择关联的测试计划的store
var testRunChooseDesignStore = Ext.create('Ext.data.TreeStore', {
	model: 'TreeModel',
	proxy: {
        type: 'ajax',
        reader: {
            type: 'json'
        },
        extractResponseData: function (response) {
            var data=response.responseJson;
            Ext.each(data, function (record) {
                record.text = record['title'];// 将后台传来的对应字段的值赋给菜单的text字段
                if(record.childrenCount==0)//如果这个节点的可显示节点数量等于0则将此文件夹设置为不可展开
                	record.expandable=false;
            });
            return data;
        }
    },
    parentIdProperty: 'parentId'
});

var testRunStepStatusStore = Ext.create('Ext.data.Store', {
    fields: ['statusNum', 'statusValue'],
    data : [
        {"statusNum":"-1", "statusValue":"<img src='static/images/icons/fam/warning.ico' style='vertical-align:text-top;'  />未完成"},
        {"statusNum":"0", "statusValue":"<img src='static/images/icons/fam/cross.gif' style='vertical-align:text-top;'  />失败"},
        {"statusNum":"1", "statusValue":"<img src='static/images/icons/fam/accept.png' style='vertical-align:text-top;'  />成功"}
    ]
});

//用于显示测试执行审核记录的Grid的Store
var testRunCheckLogStore = Ext.create('Ext.data.Store', {
    proxy: {
        type: 'ajax',
        reader: {
            type: 'json'
        }
    }
});